#include "Clickable.h"

void Clickable::setSize(XY topLeftSize, XY bottomRightSize)
{
	//Set the top left boundry
	topLeft = topLeftSize;

	//Set the bottom right boundry
	bottomRight = bottomRightSize;
}

bool Clickable::mouseOver(XY mousePos)
{
	//If the mouse position is less than the top left boundry and greater than the bottom right boundry
	if(mousePos < topLeft && mousePos > bottomRight)
	{
		//Than the mouse is over the clickable object
		return true;
	}
	else
	{
		//Else the mouse is not over the clickable object
		return false;
	}
}